package com.bysj.lms.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaojiakai
 * @since 2022-02-04
 */
@ApiModel("服务器托管申请模型")
@Getter
@Setter
@TableName("lms_has")
@ToString
public class LmsHas implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("申请编号")
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty("申请人用户id")
    private String applicantId;

    @ApiModelProperty("申请人姓名")
    private String name;

    @ApiModelProperty("团队名")
    private String team;

    @ApiModelProperty("申请人联系电话")
    private String applicantPhone;

    @ApiModelProperty("服务器ip")
    private String ip;

    @ApiModelProperty(value = "域名",notes = "没有填无")
    private String domainName;

    @ApiModelProperty(value = "服务器对外开放端口",notes = "是一个数组")
    private String port;

    @ApiModelProperty("操作系统版本")
    private String os;

    @ApiModelProperty("主要软件及作用")
    private String mainSoft;

    @ApiModelProperty("数据库信息")
    private String dbInfo;

    @ApiModelProperty("品牌型号")
    private String brandModel;

    @ApiModelProperty("服务器配置")
    private String serverConfiguration;

    @ApiModelProperty("服务器功率")
    private Float serverPower;

    @ApiModelProperty(value = "服务器尺寸外型",notes = "□ 机架式（    U） □ 刀片式（   片）  □ 塔式")
    private String appearanceSize;

    @ApiModelProperty(value = "发布范围",notes = "□校内         □国内          □国际")
    private String publicationScope;

    @ApiModelProperty("维修人名称")
    private String maintenanceName;

    @ApiModelProperty("维修人电话")
    private String maintenanceTel;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("托管负责人用户id")
    private String chargeId;

    @ApiModelProperty("申请时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("处理时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime handleTime;

    @ApiModelProperty("机柜id")
    private Integer cabinetinfoId;

    @ApiModelProperty("机柜信息")
    private Cabinetinfo cabinetinfo;

    @ApiModelProperty("托管状态")
    private String status;

}
